package a.f;

import a.c.y;
import a.c.z;
import a.d.w;

class ob
{
  public static fc a(z paramz, w paramw)
  {
    boolean bool = o.eg;
    int i = o.dg;
    Object localObject1 = null;
    Object localObject2 = null;
    double d1 = 1.7976931348623157E+308D;
    double d2 = 1.7976931348623157E+308D;
    y localy = paramz.h();
    if (localy.e()) {}
    for (;;)
    {
      if (!bool)
      {
        fc localfc = (fc)localy.j();
        double d3 = w.a(paramw, localfc.j().l());
        if (i == 0)
        {
          if (!bool) {
            if (d3 < d1)
            {
              d1 = d3;
              localObject1 = localfc;
            }
          }
          if (!bool)
          {
            if (d3 < d2)
            {
              if (bool) {
                break label143;
              }
              if (a.d.o.a(localfc.j(), paramw, 0.0D))
              {
                d2 = d3;
                localObject2 = localfc;
              }
            }
            localy.f();
          }
          label143:
          if (i == 0) {
            break;
          }
          if (bool) {
            continue;
          }
          if (bool) {
            break label163;
          }
          if (localObject2 != null) {
            return localObject2;
          }
        }
      }
    }
    label163:
    return localObject1;
  }
  
  public static a.d.o a(a.d.o paramo)
  {
    w localw = paramo.l();
    a.d.o localo = new a.d.o(0.0D, 0.0D, paramo.g(), paramo.h());
    localo.g(localw.a, localw.b);
    return localo;
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.ob
 * JD-Core Version:    0.7.0.1
 */